package com.oauth.application.client.rpc;

import java.util.List;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.oauth.application.client.beans.ApplicationClientBean;
import com.oauth.components.client.rpc.exception.SessionExpiredException;

@RemoteServiceRelativePath("../application/list.ajax")
public interface ApplicationRemoteService extends RemoteService {

	public List<ApplicationClientBean> getMyApplications() throws SessionExpiredException;

	public String subscribeToApplication(Long pApplicationId) throws SessionExpiredException;

	public String unSubscribeFromApplication(Long pApplicationId);

	public List<ApplicationClientBean> getUnSubscribedApplications() throws SessionExpiredException;

}
